home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / TCP_IP / TNOS230S / POOL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-03  |  439 b   |  24 lines

  1. #if defined(POOLED) && !defined(__POOL_H__)
  2. #define __POOL_H__
  3.  
  4. struct mempoolblock    {
  5.     char *base;
  6.     int entries;
  7.     struct mempoolblock *next;
  8. };
  9. #define NULLPOOLBLK ((struct mempoolblock *)0)
  10.  
  11. struct mempool    {
  12.     struct mempoolblock *top;
  13.     struct mempoolblock *bottom;
  14.     int index;
  15.     int size;
  16.     int numentries;
  17. };
  18.  
  19.  
  20. void *pool_alloc (struct mempool *pool);
  21. void pool_free (struct mempool *pool);
  22.  
  23. #endif /* __POOL_H__ */
  24.